package com.ruoyi.sports.mapper;

import java.util.List;
import com.ruoyi.sports.domain.Application;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
 * 报名参赛记录Mapper接口
 * 
 * @author ruoyi
 * @date 2023-03-08
 */

public interface ApplicationMapper 
{
    /**
     * 查询报名参赛记录
     * 
     * @param applicationId 报名参赛记录主键
     * @return 报名参赛记录
     */
    public Application selectApplicationByApplicationId(Long applicationId);

    /**
     * 查询报名参赛记录列表
     * 
     * @param application 报名参赛记录
     * @return 报名参赛记录集合
     */
    public List<Application> selectApplicationList(Application application);

    /**
     * 新增报名参赛记录
     * 
     * @param application 报名参赛记录
     * @return 结果
     */
    public int insertApplication(Application application);

    /**
     * 修改报名参赛记录
     * 
     * @param application 报名参赛记录
     * @return 结果
     */
    public int updateApplication(Application application);

    /**
     * 删除报名参赛记录
     * 
     * @param applicationId 报名参赛记录主键
     * @return 结果
     */
    public int deleteApplicationByApplicationId(Long applicationId);

    /**
     * 批量删除报名参赛记录
     * 
     * @param applicationIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteApplicationByApplicationIds(Long[] applicationIds);
}
